The TZ program included here came from a UK user who was wrestling with setting the TZ variable outside the US. ----------------- Xref: netcom.com comp.infosystems.www:15490 Path: netcom.com!netcomsv!decwrl!news.hal.COM!olivea!\ charnel.ecst.csuchico.edu!yeshua.marcam.com!usc!\ howland.reston.ans.net!pipex!mantis!mantis!not-for-mail From: mathew@mantis.co.uk (mathew) Newsgroups: comp.infosystems.www Subject: Re: SOLVED: Setting TZ for Win httpd 1.1a7 Date: 5 May 1994 12:20:10 +0100 Organization: Mantis Consultants Ltd, Cambridge, UK Lines: 246 Message-ID: <2qakpa$mf8@sunforest.mantis.co.uk> References: <2q8t7a$1kn@vixen.cso.uiuc.edu> [...] For the benefit of UK users, I'll point out that TZ=GMT0BST is *not* correct for the UK. MS-DOS assumes that everyone changes time zone at the same date as the USA. For British Summer Time, the correct setting is TZ=BST-1 For Greenwich Mean Time, the correct setting is TZ=GMT0 You have to manually change setting twice a year. Don'cha just love MS-DOS, eh? The following Microsoft C program will let you check that you've got the right settings: #include #include int _daylight; long _timezone; char *_tzname[]; main() { time_t tnow; time(&tnow); printf(" Local time is %s\n",asctime(localtime(&tnow))); printf("Universal time is %s\n",asctime(gmtime(&tnow))); _tzset(); printf("Daylight savings time flag = %d\n", _daylight); printf("Time offset = %ld\n", _timezone); printf("Time zone = %s\n", _tzname[0]); } The binary is attached, as it's only small. mathew